.TH std::basic_ios::set_rdbuf 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::basic_ios::set_rdbuf \- std::basic_ios::set_rdbuf

.SH Synopsis
   protected:                                                 \fI(since C++11)\fP
   void set_rdbuf( std::basic_streambuf<CharT,Traits>* sb );

   Sets the associated stream buffer to sb without clearing the error state.

   This member function is protected: it is called by the move constructors of the
   derived streams such as std::basic_ofstream or std::basic_istringstream, as the
   final step after constructing the base class and after moving the stream buffer:
   only the most derived stream class knows how to correctly move the stream buffer,
   but std::basic_ios needs to be made aware of the stream's new location so that its
   public member functions can access it.

.SH Parameters

   sb - stream buffer to associate to

.SH Return value

   \fI(none)\fP

.SH Exceptions

   Throws nothing.

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   rdbuf manages associated stream buffer
         \fI(public member function)\fP

.SH Category:
     * Todo no example
